﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FarseerPhysics.Dynamics;
using Microsoft.Xna.Framework;

namespace HappyFrogXna.Roles
{
    /// <summary>
    /// this a factory class is for creating game scene more comvenient.
    /// </summary>
    static class EntityCreator
    {
        public static Entity CreateEntity(string role, World w)
        {
            switch (role)
            { 
                case "Frog1":
                    return new Frog1(w, new Vector2(0, 0));
                case "RectWood1":
                    return new RectWood1(w, new Vector2(0, 0));
                case "RectWood2":
                    return new RectWood2(w, new Vector2(0, 0));
                case "RectWood3":
                    return new RectWood3(w, new Vector2(0, 0));
                case "RectWood4":
                    return new RectWood4(w, new Vector2(0, 0));
                case "RectWood5":
                    return new RectWood5(w, new Vector2(0, 0));
                case "RectStone1":
                    return new RectStone1(w, new Vector2(0, 0));
                case "RectStone2":
                    return new RectStone2(w, new Vector2(0, 0));
                case "RectStone3":
                    return new RectStone3(w, new Vector2(0, 0));
                case "RectStone4":
                    return new RectStone4(w, new Vector2(0, 0));
                case "RectStone5":
                    return new RectStone5(w, new Vector2(0, 0));
                case "RectIce1":
                    return new RectIce1(w, new Vector2(0, 0));
                case "RectIce2":
                    return new RectIce2(w, new Vector2(0, 0));
                case "RectIce3":
                    return new RectIce3(w, new Vector2(0, 0));
                case "RectIce4":
                    return new RectIce4(w, new Vector2(0, 0));
                case "RectIce5":
                    return new RectIce5(w, new Vector2(0, 0));
                case "Animal1":
                    return new Animal1(w, new Vector2(0, 0));
                case "Animal2":
                    return new Animal2(w, new Vector2(0, 0));
                default:
                    return null;
            }
        }
    }
}
